//
//  AppDelegate.swift
//  WB
//
//  Created by 曾佳豪 on 2017/4/2.
//  Copyright © 2017年 haodada.com. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        //初始化Windows
        window = UIWindow(frame: UIScreen.main.bounds)
        
        //创建根控制器
        let  controller = WBMainViewController()
        
        ////当访问一个可选对象的方法和属性时,可以直接使用?, 最终会返回一个可选值
        //设置window的根控制器
        window?.rootViewController = controller
        
        window?.makeKeyAndVisible()
        
        
        return true
    }
 

}

